﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ongoal.Quotation.Model
{
    /// <summary>
    /// Cap配置实体
    /// </summary>
    public class CapConfigModel
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool? Enable { get; set; }

        /// <summary>
        /// CAP数据库名称
        /// </summary>
        public string? CapDBName { get; set; }

        /// <summary>
        /// 消息层工具
        /// </summary>
        public string MessageLayer { get; set; }

        /// <summary>
        /// 失败后的重拾间隔，默认60秒
        /// </summary>
        public int? FailedRetryInterval { get; set; }

        /// <summary>
        /// 设置成功信息的删除时间默认24*3600秒
        /// </summary>
        public int? SucceedMessageExpiredAfter { get; set; }

        /// <summary>
        /// //失败后的重试次数，默认50次；在FailedRetryInterval默认60秒的情况下，即默认重试50*60秒(50分钟)之后放弃失败重试
        /// </summary>
        public int? FailedRetryCount { get; set; }

        /// <summary>
        /// CAP业务数据库名称
        /// </summary>
        public string? CapBusinessDBName { get; set; }

    }
}
